
<!DOCTYPE html>
<!--[if IEMobile 7 ]>    <html class="no-js iem7"> <![endif]-->
<!--[if (gt IEMobile 7)|!(IEMobile)]><!-->
<html class="no-js" lang="vi" xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml" xmlns:og="http://ogp.me/ns#" itemscope="itemscope" itemtype="http://schema.org/WebPage">
    <!--<![endif]-->
    <html lang="vi">
        <head>
            <meta charset="<?php bloginfo( 'charset' ); ?>" />
			<meta name="viewport" content="width=device-width, initial-scale=1">
			<title><?php wp_title(''); ?></title>
			<link rel="profile" href="http://gmpg.org/xfn/11" />
			<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
			<?php wp_head(); ?>
			<link rel="stylesheet" type="text/css" href="<?php echo get_template_directory_uri(); ?>/style.css">
			<script type="text/javascript" src="<?php echo get_template_directory_uri() ?>/js/jquery.min.js"></script>
			
	
    <script type="text/javascript">
        function scrollDownPage() {
            var scr_height = screen.availHeight;
            $('#mainpage').animate({
                marginTop: scr_height + "px"
            }, 1500);

            setTimeout(function () {
            $('#mainpage').animate({
                marginTop: "200px"
                }, 1500);
            }, 8000);
        }

        function scrollUpPage() {
            $('#mainpage').animate({
                marginTop: "200px"
            }, 1500);
        }

        function trackingAbdClickundefined() {
            window.open('http://www.toyota.com.vn/corolla-altis/?utm_source=BANNER&utm_medium=AUTODAILY_HOMEPAGE&utm_content=INPAGE_FLOATING_FULLPAGE_CPW&utm_campaign=COROLLA_ALTIS_RUN_OUT_2014');
            console.log('trackingAbdClickundefined');
        }
    </script>

    
    <!-- Unless using the CDN hosted version, update the URL to the Flash SWF >
    <script>
        videojs.options.flash.swf = "/videojs/video-js.swf";
    </script-->
    
	<style>
	.news-detail table td {
		padding: 5px;
	}
	nav.menu ul li { 
        padding: 0 25px;
    }
    .search-button2 {
        background: linear-gradient(to bottom, #787878 0%, #5B5B5B 100%) repeat scroll 0 0 rgba(0, 0, 0, 0);
        border: 0 none;
        border-radius: 3px 3px 3px 3px;
        color: #EFEFEF;
        margin: 0 10px 0 5px;
        padding: 4px 15px;
        width: 125px;
        margin-bottom: 28px;
    }

    #banner6a:empty {
        margin: 0;
    }
    #banner6a {
        margin-bottom: 8px;
    }
</style>
</head>

<body class="autodaily">

    <div class="container">
                                    
        <!-- header -->
        <header class="header">
            <div class="top-header"> 
                <a href="<?php echo esc_url( home_url( '/' ) ); ?>">
                    <img class="logo" src="<?php echo get_template_directory_uri() ?>/images/logo.png"/>
                </a>
                <div class="top-nav">
                    <div class="line-blue">TIN NHANH HÀNG NGÀY</div>
                    <div class="social">
                        <ul>
                            <li><a href="#" target="_blank">Facebook</a></li>
                            <li><a href="#" target="_blank">Google+</a></li>
							<li><a href="#">About us</a></li>
                        </ul>
						<div class="extra"> <a href="#"><img src="<?php echo get_template_directory_uri() ?>/images/rss.png"/></a>
							<!--div class="search">
								<form method="POST" action="#">
									<input type="search" name="SearchForm[keyword]" value="" />
									<button type="submit" class="search-button">TÌM KIẾM</button>
								</form>
							</div-->
                            <?php get_search_form(true); ?>
						</div>
                     </div>
                </div>
                <div class="clear"></div>
            </div>
            <div class="banner-home-1AB banner-1000px">
                <div id="banner1ab">
                    <span id="nothing-here"></span>
                                                
                    <script>

                        function GetURLParameter(sParam) {
                            var sPageURL = window.location.search.substring(1);
                            var sURLVariables = sPageURL.split('&');
                            for (var i = 0; i < sURLVariables.length; i++)
                            {
                                var sParameterName = sURLVariables[i].split('=');
                                if (sParameterName[0] == sParam)
                                {
                                    return sParameterName[1];
                                }
                            }
                        }

                        var adsPreview = GetURLParameter('previewads');
                        var adsPos = GetURLParameter('adspos');
                        var key = GetURLParameter('key');
                        var rnd = Math.random();
                        var now = new Date();
                        var srnd = now.getTime() * rnd;
                        //var file = 'export-'+Math.floor(srnd)+'-home.js';
                        //var adsUrl = 'http://ads.autodaily.vn/ads/preview?page=home';
                        var adsUrl = 'http://ads.autodaily.vn/ads/export-top?page=home';
                        //var adsUrl = 'http://ads.autodaily.vn/'+file;


                        if (typeof (adsPreview) != 'undefined') {
                            adsUrl += '&ads=' + adsPreview;
                        }
                        if (typeof (adsPos) != 'undefined') {
                            adsUrl += '&pos=' + adsPos;
                        }
                        if (typeof (key) != 'undefined') {
                            adsUrl += '&key=' + key;
                        }
                        //adsUrl += '&async'+(rnd*10)+'=1&async=1';
                         //adsUrl += '&target=nothing-here';

                        adsUrl += '&rnd=' + srnd;

                        // randomKey = (Math.round(Math.random() * 3, 0)) % 2;
                        //console.log('RANDOM KEY: ' + randomKey);
                        document.writeln('<scr' + 'ipt src="' + adsUrl + '" type="text/javascript"><\/scr' + 'ipt>');

                        //(function() {
                        //parentNode = document.getElementById('nothing-here');
                        //var atdlAds = document.createElement('script');
                        //atdlAds.type = 'text/javascript';
                        //atdlAds.async = true;
                        //atdlAds.src = adsUrl;
                        //console.log(parentNode);
                        //var script = document.getElementsByTagName('script')[0];
                        //parentNode.parentNode.insertBefore(atdlAds, parentNode);
                        //})();
                    </script>

                 </div>
                 <div class="clear"></div>
            </div>

            <nav class="menu">
                    <a class="home_bt" style="text-align: center; width: 70px;" href="<?php echo esc_url( home_url( '/' ) ); ?>"><img src="<?php echo get_template_directory_uri(); ?>/images/ic_home.png" style="margin-top: 2px;"/></a>
                    <?php
					wp_nav_menu(array(
						'menu' => 'Category Menu',
						'menu_class' => 'menu-list',
						'container' => false,
					));
				    ?>
               
            </nav>
           <div class="headline-event">
           <?php if(is_category()){?>
               <?php   $cat = get_query_var('cat');
                        $args = array(
                        	'child_of'                 => $cat,
                            'hide_empty'               => 0
                        ); 
                
                ?>
                <?php $categories = get_categories($args);?> 
               <div id="ct4" class="tabcontent" style="display: block; margin-left: 50px;">
                     <ul class="submenulist">
                     <?php foreach($categories as $category){?>
                          <li class="last"><a href="<?php echo get_category_link( $category->term_id );?>"><?php echo $category->name; ?></a></li>
                     <?php } ?>
                     </ul>
               </div>
           <?php } ?>
                <!--div class="title">Dòng dự kiện</div>
				<div class="headline">
					<ul>
						<li><a href="#">5 mẫu xe hứa hẹn “gây sốt” sau Triển lãm Ôtô Việt Nam</a></li>
						<li><a href="#">Lexus giới thiệu RX350 2015 tại Việt Nam</a></li>
					</ul>
					<div class="clear"></div>
				</div-->                                                
				<div class="hotline">000 000 0000 (HN) – 000 000 0000 (HCM)</div>
			</div>
            <div class="banner-home-2AB banner-1000px">
                <div id="banner2ab">

                </div>
                <div class="clear"></div>
            </div>
    </header>
   <!-- end header -->


